package com.yehongyu.mytools.basic.grammar;

import java.util.Calendar;

public class Java004_Constructor3 {

	public static final Java004_Constructor3 obj = new Java004_Constructor3();
	private final int beltSize;
	private static final int CURRENT_YEAR = Calendar.getInstance().get(
			Calendar.YEAR);

	private Java004_Constructor3() {
		beltSize = CURRENT_YEAR - 2000;
	}

	public int beltSize() {
		return beltSize;
	}

	public static void main(String[] args) {
		// 测试类构造函数初始化
		System.out.println(obj.beltSize());
	}

}
